package com.navi.loaddata.core.oracleEntity.cell1;

import javax.persistence.*;

/**
 * Created by ghost on 2018/3/25.
 */
@Entity
@Table(name = "ETL_CELL_CMN_COMPONENT_V", schema = "EDALDR", catalog = "")
public class EtlCellCmnComponentV {
    private String componentId;
    private String componentType;
    private String productId;
    private String bareGlassId;
    private String bareGlassProduct;
//    private String sourceProductAry;
//    private String sourceProductCf;
    private String thickness;
//    private String bmPattern;

    @Id
    @Column(name = "COMPONENT_ID")
    public String getComponentId() {
        return componentId;
    }

    public void setComponentId(String componentId) {
        this.componentId = componentId;
    }

    @Basic
    @Column(name = "COMPONENT_TYPE")
    public String getComponentType() {
        return componentType;
    }

    public void setComponentType(String componentType) {
        this.componentType = componentType;
    }

    @Basic
    @Column(name = "PRODUCT_ID")
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "BARE_GLASS_ID")
    public String getBareGlassId() {
        return bareGlassId;
    }

    public void setBareGlassId(String bareGlassId) {
        this.bareGlassId = bareGlassId;
    }

    @Basic
    @Column(name = "BARE_GLASS_PRODUCT")
    public String getBareGlassProduct() {
        return bareGlassProduct;
    }

    public void setBareGlassProduct(String bareGlassProduct) {
        this.bareGlassProduct = bareGlassProduct;
    }

//    @Basic
//    @Column(name = "SOURCE_PRODUCT_ARY")
//    public String getSourceProductAry() {
//        return sourceProductAry;
//    }
//
//    public void setSourceProductAry(String sourceProductAry) {
//        this.sourceProductAry = sourceProductAry;
//    }
//
//    @Basic
//    @Column(name = "SOURCE_PRODUCT_CF")
//    public String getSourceProductCf() {
//        return sourceProductCf;
//    }
//
//    public void setSourceProductCf(String sourceProductCf) {
//        this.sourceProductCf = sourceProductCf;
//    }

    @Basic
    @Column(name = "THICKNESS")
    public String getThickness() {
        return thickness;
    }

    public void setThickness(String thickness) {
        this.thickness = thickness;
    }

//    @Basic
//    @Column(name = "BM_PATTERN")
//    public String getBmPattern() {
//        return bmPattern;
//    }
//
//    public void setBmPattern(String bmPattern) {
//        this.bmPattern = bmPattern;
//    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlCellCmnComponentV that = (EtlCellCmnComponentV) o;

        if (componentId != null ? !componentId.equals(that.componentId) : that.componentId != null) return false;
        if (componentType != null ? !componentType.equals(that.componentType) : that.componentType != null)
            return false;
        if (productId != null ? !productId.equals(that.productId) : that.productId != null) return false;
        if (bareGlassId != null ? !bareGlassId.equals(that.bareGlassId) : that.bareGlassId != null) return false;
        if (bareGlassProduct != null ? !bareGlassProduct.equals(that.bareGlassProduct) : that.bareGlassProduct != null)
            return false;
//        if (sourceProductAry != null ? !sourceProductAry.equals(that.sourceProductAry) : that.sourceProductAry != null)
//            return false;
//        if (sourceProductCf != null ? !sourceProductCf.equals(that.sourceProductCf) : that.sourceProductCf != null)
//            return false;
        if (thickness != null ? !thickness.equals(that.thickness) : that.thickness != null) return false;
//        if (bmPattern != null ? !bmPattern.equals(that.bmPattern) : that.bmPattern != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = componentId != null ? componentId.hashCode() : 0;
        result = 31 * result + (componentType != null ? componentType.hashCode() : 0);
        result = 31 * result + (productId != null ? productId.hashCode() : 0);
        result = 31 * result + (bareGlassId != null ? bareGlassId.hashCode() : 0);
        result = 31 * result + (bareGlassProduct != null ? bareGlassProduct.hashCode() : 0);
//        result = 31 * result + (sourceProductAry != null ? sourceProductAry.hashCode() : 0);
//        result = 31 * result + (sourceProductCf != null ? sourceProductCf.hashCode() : 0);
        result = 31 * result + (thickness != null ? thickness.hashCode() : 0);
//        result = 31 * result + (bmPattern != null ? bmPattern.hashCode() : 0);
        return result;
    }
}
